I am new to MVVM so please excuse me. I need to create a demo project regarding Employee Salary Slip(Just for my practise). where i need to have a Employee model which implements the IEmployee interface and ISalary Interface. My question was where should the IEmployee and ISalary interface should be? because i have seen plenty of examples where all are using direct class itself rather using a Interface so i am confused to use Interfaces. where should i place my following interfaces either in Model where i have my Employee class or shall i have some interface folder and have all my interfaces there.
ICustomer;
public interface IEmployee
{
string EmployeeName { get; set; }
string Department { get; set; }
string Contact { get; set; }
}
ISalaryDetails
public interface ISalaryDetails
{
int Salary { get; set; }
int Month { get; set; }
}
Employee
public class Employee : IEmployee, ISalaryDetails
{
public string EmployeeName
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public string Department
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public string Contact
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public int Salary
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public int Month
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}