public StatusData <Employee> FindEmailEmp(string Email) { StatusData <Employee> result = new StatusData <Employee>(); try { result.Data = dao.FindByEmail(Email); result.StatusResult = Status.Successfull; } catch { result.StatusResult = Status.Unsuccessfull; } return(result); }
public StatusData <List <Employee> > ListDetails() { StatusData <List <Employee> > result = new StatusData <List <Employee> >(); try { result.Data = dao.SelectListDetails(); result.StatusResult = Status.Successfull; } catch { result.StatusResult = Status.Unsuccessfull; } return(result); }
public StatusData <Employee> FindEmp(int ID) { StatusData <Employee> result = new StatusData <Employee>(); try { result.Data = dao.FindByID(ID); result.StatusResult = Status.Successfull; } catch { result.StatusResult = Status.Unsuccessfull; } return(result); }
public StatusData <List <EmpHour> > EmpIDHours(int ID) { StatusData <List <EmpHour> > result = new StatusData <List <EmpHour> >(); try { result.Data = dao.EmpIDHours(ID); result.StatusResult = Status.Successfull; } catch { result.StatusResult = Status.Unsuccessfull; } return(result); }