Пример #1
0
        public void Delete(DeleteSiteGroupRequest request)
        {
            _log.Add(request);

            try
            {
                var user = _userForAuditingRepository.GetByIdAndCompanyId(request.UserId, request.CompanyId);
                var siteGroup = _siteGroupRepository.GetByIdAndCompanyId(request.GroupId, request.CompanyId);
                siteGroup.MarkForDelete(user);
                _siteGroupRepository.SaveOrUpdate(siteGroup);

            }
            catch (Exception ex)
            {
                _log.Add(ex);
                throw;
            }
        }
 public static DeleteSiteGroupRequestBuilder Create()
 {
     _delinkSiteViewModel = new DeleteSiteGroupRequest();
     return new DeleteSiteGroupRequestBuilder();
 }