public UpdateVendorMasterResponseDto UpdateVendorMaster(UpdateVendorMasterRequestDto request) { var cModel = new UpdateVendorMasterCM { AddedDate = request.AddedDate, Address1 = request.Address1, Address2 = request.Address2, CategoryCode = request.CategoryCode, CERegisterCode = request.CERegisterCode, City = request.City, Contact1 = request.Contact1, Contact2 = request.Contact2, DCTo = request.DeliveryChallanTo, DeletedDate = request.DeletedDate, Email = request.Email, Fax = request.Fax, InvoiceTo = request.InvoiceTo, PaymentDays = request.PaymentDays, Phone = request.Phone, PinCode = request.PinCode, CompanyGST = request.CompanyGST, UpdatedBy = request.UpdatedBy, UpdatedDateTime = request.UpdatedDateTime, VendorCustomerCode = request.VendorCustomerCode, VendorName = request.VendorName, VendorShortName = request.VendorShortName, VendorCode = request.VendorCode, Country = request.Country, State = request.State }; vendorMastersRepository.UpdateVendorMaster(cModel); return(new UpdateVendorMasterResponseDto()); }
public UpdateVendorMasterResponseDto UpdateVendorMaster(UpdateVendorMasterRequestDto updateVendorMasterRequestDto) { UpdateVendorMasterResponseDto response; try { response = bVendorMasterProvider.UpdateVendorMaster(updateVendorMasterRequestDto); response.ServiceResponseStatus = 1; } catch (SSException applicationException) { response = new UpdateVendorMasterResponseDto { ServiceResponseStatus = 0, ErrorMessage = applicationException.Message, ErrorCode = applicationException.ExceptionCode }; } catch (Exception exception) { response = new UpdateVendorMasterResponseDto { ServiceResponseStatus = 0, ErrorCode = ExceptionAttributes.ExceptionCodes.InternalServerError, ErrorMessage = exception.Message }; } return(response); }