private void SaveBranchData(MyTaskViewModel model, Guid idAccount) { var branch = _branchDao.GetOne(model.IdBranch, idAccount); var person = _personDao.GetOne(branch.IdPersonOwner); branch = ConvertBranch.FromMyTaskViewModel(model, branch); person = ConvertPerson.FromMyTaskViewModel(model, person); _branchDao.InsertOrUpdate(branch); _personDao.InsertOrUpdate(person); }