public IActionResult Kayit(LoginData.Models.Registration data) { //LoginData.Services.UserServices services = new LoginData.Services.UserServices(); //var result = services.Save(data); //if (result>0) //{ // return RedirectToAction("Edit", new { Id=result}); //} return(View()); }
public bool Insert(LoginData.Models.Registration registration) { bool result = true; using (var srv = new KampContext()) { if (registration.Id > 0) { } else { srv.Registrations.Add(registration); } srv.SaveChanges(); } return(result); }