public async void OnUpdateBlockCommand()
 {
     try
     {
         if (validate())
         {
             updateBlock.userId    = App.userid;
             updateBlock.blockId   = BlockModel.id;
             updateBlock.blockName = BlockName;
             updateBlock.hostelId  = hostelid;
             updateBlock.areaId    = areaId;
             web.UpdateBlock(updateBlock);
         }
     }
     catch (Exception ex)
     {
     }
 }