public async Task <IActionResult> AddBasic([FromBody] Basic model)
 {
     try
     {
         if (model == null)
         {
             return(Ok(new ConsumptionResponse()
             {
                 success = false, message = "Add data error"
             }));
         }
         repository.AddModelAsync(model);
         if (!await work.SaveChangedAsync())
         {
             return(Ok(new ConsumptionResponse()
             {
                 success = false,
                 message = "Error saving data"
             }));
         }
         return(Ok(new ConsumptionResponse()
         {
             success = true
         }));
     }
     catch (Exception ex)
     {
         logger.LogDebug(ex, "");
         return(Ok(new ConsumptionResponse()
         {
             success = false, message = "Add basic error"
         }));
     }
 }