Пример #1
0
 public IHttpActionResult SetLogger(Models.Logging logging)
 {
     MiddelLayer.Logging _logging = new MiddelLayer.Logging();
     return(GetJsonResult(new Models.BaseResponse()
     {
         ResponseObject = _logging.Insert(logging),
         Message = "Information logged successfully.",
         StatusCode = 200
     }));
 }
Пример #2
0
 public bool Insert(Models.Logging logging)
 {
     DB.Logging _logging = new DB.Logging()
     {
         LMessage          = logging.Message,
         LClassname        = logging.ClassName,
         LMethodeName      = logging.MethodName,
         LExtraInformation = logging.ExtraInfo
     };
     _dbCommands.Insert(_logging);
     return(_dbCommands.Save());
 }