Exemple #1
0
 public long CreateBusiness(BusinessDto businessDto)
 {
     return businessManager.CreateBusiness(Mapper.Map<Model.Business.Business>(businessDto));
 }
        public bool ModifyBusinessSettings(BusinessDto business)
        {
            CheckAccessRights(business.Id);
            
            // Validate if business exists
            if (Cache.Business.TryGetValue(business.Id) == null)
            {
                throw new ValidationException(ErrorFactory.CreateAndLogError(Errors.SRVEX30001, GetMethodName(),
                    additionalDescriptionParameters: (new object[] { business.Id })));
            }

            return businessManager.ModifyBusinessSettings(Mapper.Map<Model.Business.Business>(business));
        }
Exemple #3
0
 public void ModifyBusiness(BusinessDto business)
 {
     businessManager.ModifyBusiness(Mapper.Map<Model.Business.Business>(business));
 }