public IActionResult DeleteCompariosnById([FromRoute] int id)
 {
     try
     {
         Response <ComparisonModel> response = quantityMeasurementBL.DeleteComparisonById(id);
         if (response.Success == true)
         {
             return(Ok(new { response.Success, response.Message, response.Data }));
         }
         else
         {
             return(Ok(new { response.Success, response.Message }));
         }
     }
     catch (Exception exception)
     {
         return(BadRequest(new { Success = false, message = exception.Message }));
     }
 }
 public IActionResult DeleteComparisonById(int Id)
 {
     try
     {
         var result = businessLayer.DeleteComparisonById(Id);
         if (!result.Equals(null))
         {
             bool success = true;
             var  message = "Data is deleted sucessfully";
             return(this.Ok(new { success, message, data = result }));
         }
         else
         {
             bool success = false;
             var  message = "Data is not deleted";
             return(this.NotFound(new { success, message, data = result }));
         }
     }
     catch (Exception e)
     {
         bool success = false;
         return(BadRequest(new { success, message = e.Message }));
     }
 }