I have been working through this tutorial:
http://www.codeproject.com/Articles/897559/Learn-MVC-in-days-Day
I have been getting not all code paths return a value on the "GetEmployees()" Method. As you can see I have also removed all the extra naming convention markups. I believe I am using a later version of .Net and visual studio was telling me they were causing errors.
For Example:
"public List<Employee><employee> GetEmployees()" to:
"public List<Employee> GetEmployees()"
public class EmployeeBusinessLayer
{
public List<Employee> GetEmployees()
{
List<Employee> employees = new List<Employee>();
Employee emp = new Employee();
emp.FirstName = "johnson";
emp.LastName = " fernandes";
emp.Salary = 14000;
employees.Add(emp);
}
}
Please help, I am really trying to get my head around the language of C# MVC, and OOP as compared to PHP procedural style which is my background.