public IHttpActionResult GetBranch(int id) { Branch branch = _BranchManager.GetBranch(id); if (branch == null) { return(NotFound()); } return(Ok(branch)); }