public OperationResult Edit(EditCustomers command)
        {
            var operation = new OperationResult();
            var customer  = _customersRepository.Get(command.Id);

            if (customer == null)
            {
                return(operation.Failed(ApplicationMessages.RecordNotFound));
            }

            var picturePath = $"Customers";
            var fileName    = _fileUploader.Upload(command.CustomerLogo, picturePath);


            customer.Edit(command.CustomerName, fileName, command.LogoAlt, command.LogoTitle);

            _customersRepository.SaveChanges();

            return(operation.Succedded());
        }
        public JsonResult OnPostEdit(EditCustomers command)
        {
            var result = _customersApplication.Edit(command);

            return(new JsonResult(result));
        }