Beispiel #1
0
        // POST: api/Unit
        public ServerResponse Post([FromBody] Staff Staff)
        {
            var res = new ServerResponse();

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