public static dal.Person toDal(this local.Person p) { return(new dal.Person { Id = p.Id, LastName = p.LastName, FirstName = p.FirstName }); }
public static asp.PersonForm toForm(this local.Person p) { return(new asp.PersonForm { Id = p.Id, LastName = p.LastName, FirstName = p.FirstName }); }
public void Update(local.Person p) { _repo.Update(p.toDal()); }
public void Create(local.Person p) { _repo.Insert(p.toDal()); }