public JsonResult GetBusinessPartners(int companyId) { BusinessPartnerListResponse response = new BusinessPartnerListResponse(); try { response = businessPartnerService.GetBusinessPartners(companyId); } catch (Exception ex) { response.Success = false; response.Message = ex.Message; Console.WriteLine(ex.Message); } return(Json(response, new Newtonsoft.Json.JsonSerializerSettings() { Formatting = Newtonsoft.Json.Formatting.Indented })); }