Exemplo n.º 1
0
        public ServerResponse Get()
        {
            var res = new ServerResponse();

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