Example #1
0
        public JsonResult GetBusinessPartnersNewerThen(int CompanyId, DateTime?lastUpdateTime)
        {
            BusinessPartnerListResponse response = new BusinessPartnerListResponse();

            try
            {
                response = businessPartnerService.GetBusinessPartnersNewerThen(CompanyId, lastUpdateTime);
            }
            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
            }));
        }