public async Task <IActionResult> CreateErrorLog([FromBody] dbo.ErrorLog value)
        {
            _db.dbo_ErrorLog.Add(value);
            await _db.SaveChangesAsync();

            return(Ok(value));
        }
        public async Task <IActionResult> EditErrorLog(int errorLogID, [FromBody] dbo.ErrorLog value)
        {
            var existing = await _db.dbo_ErrorLog.FirstOrDefaultAsync(x => x.ErrorLogID == errorLogID);

            if (existing == null)
            {
                return(NotFound());
            }

            existing.ErrorLogID     = value.ErrorLogID;
            existing.ErrorTime      = value.ErrorTime;
            existing.UserName       = value.UserName;
            existing.ErrorNumber    = value.ErrorNumber;
            existing.ErrorSeverity  = value.ErrorSeverity;
            existing.ErrorState     = value.ErrorState;
            existing.ErrorProcedure = value.ErrorProcedure;
            existing.ErrorLine      = value.ErrorLine;
            existing.ErrorMessage   = value.ErrorMessage;

            _db.dbo_ErrorLog.Update(existing);
            await _db.SaveChangesAsync();

            return(NoContent());
        }