public static BenificiaryMaster Attach(BeneficiaryViewModel beneficiaryViewModel) { BenificiaryMaster beneficiaryMaster = new BenificiaryMaster(); beneficiaryMaster.BeneficiaryId = beneficiaryViewModel.BeneficiaryId; beneficiaryMaster.Hasband_Photo = beneficiaryViewModel.Hasband_Photo; beneficiaryMaster.Wife_Photo = beneficiaryViewModel.Wife_Photo; beneficiaryMaster.BeneficairyName = beneficiaryViewModel.BeneficairyName; beneficiaryMaster.FatherName = beneficiaryViewModel.FatherName; beneficiaryMaster.Mother = beneficiaryViewModel.Mother; beneficiaryMaster.MobileNo = beneficiaryViewModel.MobileNo; beneficiaryMaster.CityId = beneficiaryViewModel.CityId; beneficiaryMaster.DTRNo = beneficiaryViewModel.DTRNo; beneficiaryMaster.RecordNo = beneficiaryViewModel.RecordNo; beneficiaryMaster.Class = beneficiaryViewModel.Class; beneficiaryMaster.General = beneficiaryViewModel.General; beneficiaryMaster.Single = beneficiaryViewModel.Single; beneficiaryMaster.Disabled = beneficiaryViewModel.Disabled; beneficiaryMaster.Password = beneficiaryViewModel.Password; beneficiaryMaster.AdharNo = beneficiaryViewModel.AdharNo; beneficiaryMaster.VoterID = beneficiaryViewModel.VoterID; beneficiaryMaster.Area = beneficiaryViewModel.Area; beneficiaryMaster.MojaNo = beneficiaryViewModel.MojaNo; beneficiaryMaster.KhataNo = beneficiaryViewModel.KhataNo; beneficiaryMaster.KhasraNo = beneficiaryViewModel.KhasraNo; beneficiaryMaster.PlotNo = beneficiaryViewModel.PlotNo; beneficiaryMaster.PoliceStation = beneficiaryViewModel.PoliceStation; beneficiaryMaster.WardNo = beneficiaryViewModel.WardNo; beneficiaryMaster.District = beneficiaryViewModel.District; beneficiaryMaster.BankName = beneficiaryViewModel.BankName; beneficiaryMaster.BranchName = beneficiaryViewModel.BranchName; beneficiaryMaster.IFSCCode = beneficiaryViewModel.IFSCCode; beneficiaryMaster.AccountNo = beneficiaryViewModel.AccountNo; beneficiaryMaster.CreatedBy = beneficiaryViewModel.CreatedBy; beneficiaryMaster.CreatedDate = DateTime.Now; beneficiaryMaster.CompanyID = beneficiaryViewModel.CompanyID; //beneficiaryMaster.InstallmentDetails = beneficiaryViewModel.InstallmentDetails.Select(s => new InstallmentDetail { BeneficiaryId = s.BeneficiaryId, StageID = s.StageID, CreatedDate = DateTime.Now, CreatedBy= s.CreatedBy }).ToList(); return(beneficiaryMaster); }
public void Add(BenificiaryMaster benificiary) { benificiaryMasterRepository.Add(benificiary); }
public void Update(BenificiaryMaster benificiary) { benificiaryMasterRepository.Update(benificiary); }
public BenificiaryMaster GetBenificiaryById(int id) { BenificiaryMaster benficiary = benificiaryMasterRepository.GetById(id); return(benficiary); }