コード例 #1
0
 public Models.Vertical GetVerticalByID(int Id)
 {
     Entities.Vertical entity   = _unitOfWork.Repository <Entities.Vertical>().GetSingle(x => x.VerticalID == Id);
     Models.Vertical   vertical = imapperop.Map <Entities.Vertical, Models.Vertical>(entity);
     return(vertical);
 }
コード例 #2
0
 public void RemoveVertical(Models.Vertical entity)
 {
     Entities.Vertical vertical = imapperip.Map <Models.Vertical, Entities.Vertical>(entity);
     _unitOfWork.Repository <Entities.Vertical>().Remove(vertical);
     _unitOfWork.SaveChanges();
 }