public IHttpActionResult GetBranchesByBusinessId(int?businessID) { if (businessID == null || businessID == 0) { return(BadRequest("BusinessID cannot be null")); } List <BranchDTO> branch = branchSvc.GetBranchesByBusinessId((int)businessID); return(Ok(branch)); }