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

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

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