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); }
public void RemoveVertical(Models.Vertical entity) { Entities.Vertical vertical = imapperip.Map <Models.Vertical, Entities.Vertical>(entity); _unitOfWork.Repository <Entities.Vertical>().Remove(vertical); _unitOfWork.SaveChanges(); }