Exemple #1
0
        public IHttpActionResult DeleteUserDocument(Int64 documentID)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            CRUDOperation    cRUDOperation = new CRUDOperation();
            tbl_UserDocument dbitem        = cRUDOperation.DeleteUserDocument(documentID, 0);

            if (dbitem != null)
            {
                return(Ok(dbitem));
            }
            else
            {
                return(BadRequest("404" + " : " + "An error occurred while deleting the record "));
            }
        }