public static void CheckSuccess(this BaseResponse response)
 {
     if (response.Status != ResponseCode.OK)
     {
         JsFunctions.Alert("Error: " + response.Message);
         throw new ApiException();
     }
 }
 public static async Task <bool> ConfirmDelete()
 {
     return(await JsFunctions.Confirm("Are you sure you want to delete?"));
 }