public IHttpActionResult GetById(int id) { _loggerService.CreateLog(_user, "API", "ApprovalController", "Approval", "Get By Id", id.ToString(), null); Approval approval = _approvalRepository.GetApprovalById(id); if (approval == null) { return(NotFound()); } return(Ok(approval)); }