public MessageReport Create(Home obj) { var rp = new MessageReport(); try { _HomeRepository.Add(obj); rp.Success = true; rp.Message = "Create Home Successfully"; } catch (Exception ex) { rp.Message = ex.Message; } return(rp); }
public void Add(HomeDTO entidad) { _homeRepository.Add(Mapper.Map <HomeDTO, Home>(entidad)); _homeRepository.UnitOfWork.Complete(); }
public void Add(Home home) { _homeRepository.Add(home); }