示例#1
0
 public void Add(BllPhoto photo)
 {
     photoRepository.Insert(photo.ToDalPhoto());
 }
示例#2
0
 public void AddPhoto(BllPhoto photo)
 {
     uow.Photos.Create(photo.ToDalPhoto());
     uow.Commit();
 }
示例#3
0
 public void UpdatePhoto(BllPhoto photo)
 {
     uow.Photos.Update(photo.ToDalPhoto());
     uow.Commit();
 }
示例#4
0
 /// <summary>
 /// create photo entity
 /// </summary>
 /// <param name="photo">photo entity on BLL</param>
 public void Create(BllPhoto photo)
 {
     photoRepository.Create(photo.ToDalPhoto());
     uow.Commit();
 }