public void UpdateReportGroup(ReportGroupDto reportGroupDto)
        {
            var reportGroup = this._reportGroupRepository.GetByKey(reportGroupDto.ID);
            if (reportGroup == null)
                return;

            reportGroup.UpdateGroupHeader(reportGroupDto.DisplayName, reportGroupDto.Description,
                reportGroupDto.UpdatedBy);
            this._reportGroupRepository.Update(reportGroup);
        }
 public ActionResult EditGroup(ReportGroupDto model)
 {
     model.UpdatedBy = this.LoginUser.Identity.Name;
     try
     {
         using (var service = ServiceLocator.Instance.Resolve<IReportGroupService>())
         {
             service.UpdateReportGroup(model);
             return Json(true);
         }
     }
     catch (Exception)
     {
         return Json(false, "Create the report group failure.");
     }
 }
 public ActionResult SetGroupItem(ReportGroupDto model, IEnumerable<Guid> profiles)
 {
     try
     {
         using (var service = ServiceLocator.Instance.Resolve<IReportGroupService>())
         {
             service.SetReportGroupItems(model.ID, profiles);
             return Json(true);
         }
     }
     catch (Exception)
     {
         return Json(false, "Set the report group items failure.");
     }
 }
 public void CreateReportGroup(ReportGroupDto reportGroupDto)
 {
     var reportGroup = new ReportGroup(reportGroupDto.GroupName, reportGroupDto.DisplayName,
         reportGroupDto.Description, reportGroupDto.CreatedBy);
     this._reportGroupRepository.Add(reportGroup);
 }