public IHttpActionResult GetFieldsByBranchId(int? branchID) { if (branchID == null || branchID == 0) { return BadRequest("branchID cannot be null"); } List<FieldDTO> field = fieldSvc.GetFieldsByBranchId((int)branchID); return Ok(field); }