public async Task <IActionResult> Form(int id = 0) { FriendLinksEntity model = await flService.GetModelByIdAsync(id) ?? new FriendLinksEntity(); if (id <= 0) { model.FL_ORDERID = flService.GetMaxOrderId(); } return(View(model)); }
public IActionResult SubmitForm(FriendLinksEntity model) => Json(flService.Save(model));