public IActionResult Update([FromBody] dynamic serviceData)
        {
            ValidateSession();
            var result = "";

            try
            {
                if (serviceData != null)
                {
                    Lms_AdditionalServicePoco addressPoco = JsonConvert.DeserializeObject <Lms_AdditionalServicePoco>(JsonConvert.SerializeObject(serviceData));

                    if (addressPoco.Id > 0 && addressPoco.ServiceName.Trim() != string.Empty)
                    {
                        var existingService = _additionalServiceLogic.GetSingleById(addressPoco.Id);
                        // it is required to pull existing data first,
                        // cause there are some data which do not come from UI

                        existingService.ServiceName            = addressPoco.ServiceName;
                        existingService.ServiceCode            = addressPoco.ServiceCode;
                        existingService.PayToDriver            = addressPoco.PayToDriver;
                        existingService.IsTaxApplicable        = addressPoco.IsTaxApplicable;
                        existingService.IsApplicableForStorage = addressPoco.IsApplicableForStorage;
                        existingService.IsActive = addressPoco.IsActive;

                        var poco = _additionalServiceLogic.Update(existingService);
                        result = poco.Id.ToString();
                    }
                }
            }
            catch (Exception ex)
            {
            }

            return(Json(result));
        }