Пример #1
0
        public IActionResult UpsertStudent(Student student)
        {
            var existingStudentId = Request.Form["Id"].ToString();

            if (!string.IsNullOrEmpty(existingStudentId))
            {
                student.Id = ObjectId.Parse(existingStudentId);
                _studentRepository.Update(student.Id, student);
            }
            else
            {
                _studentRepository.Insert(student);
            }

            return(RedirectToAction("Index"));
        }
        public IActionResult Insert([FromBody] object document)
        {
            var result = _dBRepository.Insert(document.ToJson());

            return(Ok(result));
        }
Пример #3
0
 public void SavLog(AuditLog model)
 {
     _RequestlogCommand.Insert(model);
 }
Пример #4
0
 public void SaveClientReQuest(ClientRequestLog model)
 {
     _RequestlogCommand.Insert(model);
 }