public ActionResult <Keep> Get(int keepid) { Keep result = _repo.GetById(keepid); if (result != null) { return(Ok(result)); } return(BadRequest()); }
public ActionResult <Keep> GetById(int id) { Keep found = _kr.GetById(id); if (found == null) { return(BadRequest("No")); } return(Ok(found)); }
public ActionResult <Keep> Get(int id) { try { return(Ok(_repo.GetById(id))); } catch (Exception e) { return(BadRequest(e)); } }
public Keep Get(int id) { return(db.GetById(id)); }
public Keep Get(int id) { Console.WriteLine(id); return(db.GetById(id)); }
public Keep GetKeepsById(int keepId) { return _repo.GetById(keepId); }
public Keep GetById([FromRoute] int id) { return(_repo.GetById(id)); }
public Keep GetById(string id) { return(_repo.GetById(id)); }