Example #1
0
        public ActionResult <Keep> Get(int keepid)
        {
            Keep result = _repo.GetById(keepid);

            if (result != null)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
Example #2
0
        public ActionResult <Keep> GetById(int id)
        {
            Keep found = _kr.GetById(id);

            if (found == null)
            {
                return(BadRequest("No"));
            }
            return(Ok(found));
        }
Example #3
0
 public ActionResult <Keep> Get(int id)
 {
     try
     {
         return(Ok(_repo.GetById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
Example #4
0
 public Keep Get(int id)
 {
     return(db.GetById(id));
 }
Example #5
0
 public Keep Get(int id)
 {
     Console.WriteLine(id);
     return(db.GetById(id));
 }
Example #6
0
 public Keep GetKeepsById(int keepId)
 {
     return _repo.GetById(keepId);
 }
Example #7
0
 public Keep GetById([FromRoute] int id)
 {
     return(_repo.GetById(id));
 }
Example #8
0
 public Keep GetById(string id)
 {
     return(_repo.GetById(id));
 }