public async Task <IActionResult> AddUserLog([FromBody] UserLog 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 userLog error"
         }));
     }
 }