Exemplo n.º 1
0
        public BusinessDTO Create(BusinessDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(BusinessAssembler.ToDTO(businessRepo.CreateBusiness(BusinessAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
Exemplo n.º 2
0
        public BusinessDTO Update(BusinessDTO modelDTO)
        {
            BusinessDTO returnBusiness = null;

            if (modelDTO != null && modelDTO.BusinessID > 0)
            {
                businessRepo.UpdateBusiness(BusinessAssembler.ToEntity(modelDTO));
                returnBusiness = modelDTO;
            }

            return(returnBusiness);
        }
Exemplo n.º 3
0
        public BusinessDTO Update(BusinessDTO oBusinessDTO)
        {
            BusinessDTO returnBusiness = null;

            if (oBusinessDTO != null && oBusinessDTO.BusinessID > 0)
            {
                oBusinessRepo.UpdateBusiness(BusinessAssembler.ToEntity(oBusinessDTO));
                returnBusiness = oBusinessDTO;
            }

            return(returnBusiness);
        }