public BranchModel GetBranchModelForUpdate() { int branchId = 1; MainBranchAddressModel mainBranchAddressModel = new MainBranchAddressModel { Position = "Position", Email = "*****@*****.**", Address = "address", Phone = "0533286913", Fax = "0533286913" }; return(new BranchModel { BranchName = "test branch", AgencyName = "AgencyName", BranchIdString = Util.Encrypt(branchId), AgencyCode = "022001000000", RelatedAgencyCode = "022001000000", MainBranchAddress = mainBranchAddressModel, BranchId = branchId, techcommitteeIds = new List <int>() { 1, 2 } }); }
public BranchModel GetBranchModel() { List <OtherBranchAddressModel> otherBranchAddressModels = new List <OtherBranchAddressModel>(); otherBranchAddressModels.Add(new OtherBranchAddressModel() { AddressName = "address" }); List <int> committieeIds = new List <int>() { 1, 2 }; MainBranchAddressModel mainBranchAddressModel = new MainBranchAddressModel { Position = "Position", Email = "*****@*****.**", Address = "address", Phone = "0533286913", Fax = "0533286913" }; return(new BranchModel { BranchName = "test branch", AgencyName = "AgencyName", AgencyCode = "022001000000", RelatedAgencyCode = "022001000000", MainBranchAddress = mainBranchAddressModel, AddressesList = otherBranchAddressModels, CommittieeIds = committieeIds }); }