public DataAccessLayerCommon.Branch MapFromModel(Models.Branch branch) { DataAccessLayerCommon.Branch tempBranch = new DataAccessLayerCommon.Branch { Id = branch.Id, Name = branch.Name }; ConcatAddress(tempBranch, branch); return(tempBranch); }
public Models.Branch MapFromEntity(DataAccessLayerCommon.Branch branch) { Models.Branch tempBranch = new Models.Branch { Id = branch.Id, Name = branch.Name }; SplitAddress(branch.Address, tempBranch); return(tempBranch); }
private void ConcatAddress(DataAccessLayerCommon.Branch branch, Models.Branch tempBranch) { branch.Address = tempBranch.Country + "," + tempBranch.City + "," + tempBranch.Street; }