コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }