示例#1
0
 public static dal.Person toDal(this local.Person p)
 {
     return(new dal.Person
     {
         Id = p.Id,
         LastName = p.LastName,
         FirstName = p.FirstName
     });
 }
示例#2
0
 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());
 }