Exemple #1
0
        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();
 }
Exemple #3
0
 public void Add(Home home)
 {
     _homeRepository.Add(home);
 }