public ActionResult <string> Delete(int id) { if (_repo.DeleteKeep(id)) { return(Ok("Successfully deleted!")); } return(BadRequest("Unable to delete!")); }
public ActionResult <string> DeleteKeep(int keepid) { string userid = HttpContext.User.Identity.Name; if (_repo.DeleteKeep(keepid, userid)) { return(Ok("Deleted Keep")); } return(BadRequest("Cannot delete Keep!")); }
public ActionResult <string> Delete(string keepId) { string uid = HttpContext.User.Identity.Name; if (uid != null && _repo.DeleteKeep(keepId, uid)) { return(Ok("keep was deleted!")); } return(BadRequest("couldn't delete keep")); }
public string DeleteKeep(int id) { var user = HttpContext.User.Identity.Name; bool delete = _db.DeleteKeep(id, user); if (delete) { return("Successfully Deleted!"); } return("An Error Occurred!"); }
public ActionResult <Keep> Delete(string keepId) { string uid = HttpContext.User.Identity.Name; if (uid != null) { _keepRepo.DeleteKeep(keepId, uid); return(Ok("Successfully deleted keep")); } return(BadRequest("No keep to delete")); }
public string DeleteKeep(int id) { var user = HttpContext.User.Identity.Name; bool delete = _db.DeleteKeep(id, user); if (delete) { return("Successfully Deleted"); } return("Try again"); }
public Keep DeleteKeep(Keep keep) { return(_repo.DeleteKeep(keep)); }
public void DeleteKeep(Keep keep) { _repo.DeleteKeep(keep); }
public Keep DeleteKeep(Keep keep) { return(_db.DeleteKeep(keep)); }