public bool SignUp(Emloyee.Model.Model.Employee employee) { MaxlinkEntities maxlinkEntities = new MaxlinkEntities(); Emloyee.Model.Model.Employee employee1 = new Emloyee.Model.Model.Employee(); employee1.Name = employee.Name; employee1.Email = employee.Email; employee1.Password = employee.Password; maxlinkEntities.Employee.Add(employee1); maxlinkEntities.SaveChanges(); return(true); }
public object SignUp(Emloyee.Model.Model.Employee employee) { try { //long custId = 0; bool response = accountRepository.SignUp(employee); if (response) { return(true); } else { return(false); } } catch (Exception ex) { return(false); } }