Пример #1
0
        public IActionResult Guarantor(GuarantorViewModel model)
        {
            Guarantor sd = new Guarantor
            {
                Name      = model.guarantor.Name,
                StudentId = model.student.Id,
                Email     = model.guarantor.Email,
                Phone     = model.guarantor.Phone,
                Address   = model.guarantor.Address,
            };


            var add = _er.AddGuarantor(sd);

            ViewBag.Message = "Data Inserted Successful";

            return(RedirectToAction("Index"));
        }