public IActionResult Get()
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(BadRequest(ModelState));      // 400
         }
         return(Ok(_blockService.GetAllBlock())); //200
     }
     catch (Exception ex)
     {
         return(StatusCode(500, new
         {
             Result = false,
             ErrorMessage = ex.Message
         }));
     }
 }