Esempio n. 1
0
        public JsonNetResult GetEmployeeDetails(Guid? id)
		{
            var employeeModel = new EmployeeDetailsViewModel()
            {
                Employee = new Employee(),
            };

            employeeModel.Initialize(id);


            return new JsonNetResult { Data = employeeModel };
		}
Esempio n. 2
0
 public JsonNetResult GetEmployeePhoto(Guid id)
 {
     var employeeModel = new EmployeeDetailsViewModel();
     employeeModel.Initialize(id);
     return new JsonNetResult { Data = employeeModel.PhotoData ?? string.Empty};
 }
Esempio n. 3
0
        public JsonNetResult EmployeeDetails(EmployeeDetailsViewModel employee, bool isNew)
		{
		    var error = employee.Save(isNew);

			return new JsonNetResult { Data = error };
        }