public void UpdateVehicleInfo(BranchClaimListDto input) { try { var vehicle = _brVehicleRepository.Get(input.VehicleId); vehicle.RegistrationNumber = input.RegNo; vehicle.VinNumber = input.VinNumber; vehicle.MakeId = input.ManufactureID; vehicle.ModelId = input.ModelID; vehicle.Color = input.Colour; vehicle.Year = input.Year; vehicle.PaintTypeId = input.PaintTypeId; vehicle.VehicleCode = input.VehicleCode; vehicle.MM_Code = input.mmCode; vehicle.OtherInformation = input.VehicleOtherInfo; vehicle.IsLuxury = input.IsLuxury; vehicle.IsSpecialisedType = input.IsSpecialisedType; _brVehicleRepository.Update(vehicle); } catch (Exception x) { throw x; } }
public void UpdateClient(BranchClaimListDto input) { try { var clients = _clientRepository.Get(input.ClientID); clients.Name = input.Name; clients.Surname = input.Surname; _clientRepository.Update(clients); } catch (Exception x) { throw x; } }
public void UpdateInsuranceInfo(BranchClaimListDto input) { try { var jobs = _claimRepository.Get(input.Id); jobs.BrokerID = input.BrokerID; jobs.InsuranceID = input.InsuranceID; _claimRepository.Update(jobs); } catch (Exception x) { throw x; } }
public void UpdateJobInfo(BranchClaimListDto input) { try { var jobs = _claimRepository.Get(input.Id); jobs.JobStatusID = input.JobStatusID; jobs.BranchEntryMethod = input.BranchEntryMethod; jobs.CSAID = input.CsaID; jobs.ClaimHandlerID = input.ClaimHandlerID; jobs.EstimatorID = input.EstimatorID; jobs.PartsBuyerID = input.PartsBuyerID; jobs.ShopAllocation = input.ShopAllocationID; jobs.DamangeReason = input.DamageReason; jobs.CurrentKMs = input.CurrentKMs; jobs.OtherInformation = input.OtherInformation; jobs.New_Comeback = input.New_Comeback; jobs.UnderWaranty = input.UnderWaranty; jobs.IsUnrelatedDamangeReason = input.IsUnrelatedDamageReason; jobs.JobNotProceeding = input.JobNotProceeding; jobs.HighPriority = input.HighPriority; jobs.Contents = input.Contents; jobs.InsuranceID = input.InsuranceID; jobs.BrokerID = input.BrokerID; jobs.ClaimAdministrator = input.ClaimAdministrator; jobs.ClaimNumber = input.ClaimNumber; jobs.InsuranceOtherInfo = input.InsuranceOtherInfo; jobs.PolicyNumber = input.PolicyNumber; _claimRepository.Update(jobs); } catch (Exception x) { throw x; } }