public void AddGroup(Group gr) { if (gr != null) { gr.Id = Guid.NewGuid(); _groupRepository.CreateGroup(gr); } }
/// <summary> /// /// </summary> /// <param name="request"></param> /// <returns></returns> public string Get(Routes.CMSCreateGroup request) { try { IGroup cms = Helper.GetGrain <IGroup>(0); string response = cms.CreateGroup(request.userName, request.token, request.groupName, request.groupDesc, request.groupLevel).Result; return(response); } catch { return(Helper.AbnormalError); } }