Beispiel #1
0
        public ServerResponse GetSalary(string staffCode)
        {
            var res = new ServerResponse();

            using (StaffBL StaffBL = new StaffBL())
            {
                try
                {
                    res.Data = StaffBL.GetSalaryByStaffCode(staffCode);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }