Exemplo n.º 1
0
 public ActionResult <string> Delete(int id)
 {
     if (_repo.DeleteKeep(id))
     {
         return(Ok("Successfully deleted!"));
     }
     return(BadRequest("Unable to delete!"));
 }
Exemplo n.º 2
0
        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!"));
        }
Exemplo n.º 3
0
        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"));
        }
Exemplo n.º 4
0
        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!");
        }
Exemplo n.º 5
0
        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"));
        }
Exemplo n.º 6
0
        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");
        }
Exemplo n.º 7
0
 public Keep DeleteKeep(Keep keep)
 {
     return(_repo.DeleteKeep(keep));
 }
Exemplo n.º 8
0
 public void DeleteKeep(Keep keep)
 {
     _repo.DeleteKeep(keep);
 }
Exemplo n.º 9
0
 public Keep DeleteKeep(Keep keep)
 {
     return(_db.DeleteKeep(keep));
 }