Esempio n. 1
0
 public void AddGroup(Group gr)
 {
     if (gr != null)
     {
         gr.Id = Guid.NewGuid();
         _groupRepository.CreateGroup(gr);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }