public void Delete(int id) { var user = HttpContext.User; var AuthorId = user.Identity.Name; _db.DeleteKeep(id, AuthorId); }
public ActionResult <string> Delete(int id) { if (_repo.DeleteKeep(id, HttpContext.User.Identity.Name)) { return(Ok("Successfully Deleted")); } return(BadRequest("Unable to Delete")); }
public ActionResult <string> DeleteKeep(int id) { if (_kr.DeleteKeep(id)) { return(Ok()); } return(BadRequest("Unable to delete this keep")); }
public ActionResult <string> Delete(int id) { if (_repo.DeleteKeep(id)) { return(Ok("Successfully Deleted!")); } return(BadRequest("Unable to Delete!")); }
public ActionResult <string> Delete(int keepid) { var id = HttpContext.User.Identity.Name; if (_repo.DeleteKeep(keepid, id)) { return(Ok("Successfully Deleted")); } return(BadRequest("Unable to Delete!")); }
public string DeleteKeep(int id) { var user = HttpContext.User.Identity.Name; bool delete = _db.DeleteKeep(id, user); if (delete) { return "This Has Been Successfully Deleted!"; } return "Error Occurred!"; }
public ActionResult <string> DeleteKeep(int id) { var userId = HttpContext.User.Identity.Name; if (_repo.DeleteKeep(id, userId)) { return(Ok("deleted")); } return(BadRequest()); }
public ActionResult <Keep> Delete(int id) { var CurrentUserId = HttpContext.User.Identity.Name; if (_keepRepo.DeleteKeep(CurrentUserId, id)) { return(Ok("Success")); } return(NotFound("No keep found")); }
public string DeleteKeep(int id) { var user = HttpContext.User.Identity.Name; bool delete = _db.DeleteKeep(id, user); if (delete) { return("Successfully Deleted"); } return("Invalid"); }
public bool DeleteKeep(int id) { return(_db.DeleteKeep(id)); }