Example #1
0
        public static ResultModel <EFResponse> DeleteUsers(int ID)
        {
            res.StatusCode = (int)HttpStatusCode.NotFound;
            var User = ManageUser.GetById(ID);

            if (User != null)
            {
                res.StatusCode = (int)HttpStatusCode.Found;
                var ret = ManageUser.Delete(User);
                if (ret.Success)
                {
                    res.StatusCode = (int)HttpStatusCode.OK; res.Value = ret;
                }
            }
            return(res);
        }