public IActionResult FindById(long id)
        {
            Application_Errors applicationErrors = _applicationErrorRepository.FindById(id);

            if (applicationErrors == null)
            {
                return(Ok(new Application_ResponseWrapper()
                {
                    ResponseCode = "1001", ResponseMessage = "Result not found", Status = "failed"
                }));
            }
            return(Ok(new Application_ResponseWrapper()
            {
                ResponseCode = "0", ResponseMessage = "success", Status = "success", ResponseResult = applicationErrors
            }));
        }
 public bool Insert(Application_Errors Errors)
 {
     try
     {
         if (Errors == null)
         {
             return(false);
         }
         Errors.logDate = DateTime.Now;
         var Obj = _db.ObjApplicationErrors.Add(Errors);
         _db.SaveChanges();
         return(true);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public IActionResult Insert([FromBodyAttribute] Application_Errors _applicationErrors)
 {
     if (!ModelState.IsValid)
     {
         return(Ok(new Application_ResponseWrapper()
         {
             ResponseCode = "1000", ResponseMessage = "Invalid Models", Status = "failed"
         }));
     }
     if (_applicationErrorRepository.Insert(_applicationErrors))
     {
         return(Ok(new Application_ResponseWrapper()
         {
             ResponseCode = "0", ResponseMessage = "Information saved", Status = "success", ResponseResult = _applicationErrors
         }));
     }
     return(Ok(new Application_ResponseWrapper()
     {
         ResponseCode = "1001", ResponseMessage = "Information not saved", Status = "failed"
     }));
 }