Ejemplo n.º 1
0
        public IHttpActionResult Delete([FromBody] PayShiftsDC objUsers)
        {
            PayShiftsBL        objUser      = new PayShiftsBL();
            List <EXCEPTIONDC> lstException = new List <EXCEPTIONDC>();
            List <PayShiftsDC> list         = new List <PayShiftsDC>();

            list.Add(objUsers);
            try
            {
                int IsDeleted = objUser.Delete(list);
                return(Ok(IsDeleted));
            }
            catch (Exception ex)
            {
                return(new TextResult(lstException, Request, "Following PayDesignations cannot be deleted as: ", "All the other records deleted successfully.", true));
            }
        }