Ejemplo n.º 1
0
 public object Group(Group group, long userId, int type)
 {
     logger.Log(LogLevel.Debug, $"ShareController.Group({Json(group)}, {userId})");
     try
     {
         return(ShareManager.ShareGroup(group, userId, type));
     }
     catch (Exception ex)
     {
         logger.Log(LogLevel.Error, $"ShareController.Group({Json(group)}, {userId}) - {ex}");
         //изменить http status code
         return(new Response(100, ex.Message));
     }
 }
Ejemplo n.º 2
0
 public object Group(long groupId, long userId, int type)
 {
     logger.Log(LogLevel.Debug, $"ShareController.Group({groupId}, {userId})");
     try
     {
         return(Json(ShareManager.ShareGroup(groupId, userId, type), JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         logger.Log(LogLevel.Error, $"ShareController.Group({groupId}, {userId}) - {ex}");
         //изменить http status code
         return(Json(new Response(100, ex.Message), JsonRequestBehavior.AllowGet));
     }
 }