private void AddManager(Managers entityToAdd) { IManagersRepository repo = new ManagersRepository(getEntities()); Entities.Managers entityToAdd2 = Mapper.Map <Managers, Entities.Managers>(entityToAdd); repo.Add(entityToAdd2); }
public void RemoveManager(Managers entityToRemove) { IManagersRepository repo = new ManagersRepository(getEntities()); Entities.Managers entityToRemove2 = Mapper.Map <Managers, Entities.Managers>(entityToRemove); repo.Remove(entityToRemove2); }
public int GetIdOfManager(Managers entityToGetId) { IManagersRepository repo = new ManagersRepository(getEntities()); Entities.Managers entityToGetId2 = Mapper.Map <Managers, Entities.Managers>(entityToGetId); return(repo.GetManagerId(entityToGetId2)); }
public Managers GetManagerById(int entityToGetById) { IManagersRepository repo = new ManagersRepository(getEntities()); Entities.Managers returnedValue = repo.GetById(entityToGetById); Managers returnedValue2 = Mapper.Map <Entities.Managers, Managers>(returnedValue); return(returnedValue2); }