Example #1
0
 public async Task <JsonResult> GetByID(string id, string api)
 {
     try {
         var data = MessagingRoomService.GetByID(Guid.Parse(id), Guid.Parse(api));
         return(Success(MessagingRoomVM.MToVM(data)));
     } catch { return(Failed(MessageUtility.ServerError())); }
 }
        public static GroupingsDataVM SetSubDataMessagingRoom(GroupingsData model, Guid aid)
        {
            var data = SetSubData(model, aid);

            data.User          = UsersVM.MToVM(UsersService.GetByID(model.OwnerID));
            data.MessagingRoom = MessagingRoomVM.MToVM(MessagingRoomService.GetByID(model.SourceID, aid));
            return(data);
        }