public async Task <IActionResult> Create(DeliveryTimeCreateViewModel model) { if (ModelState.IsValid) { var store = new deliverytimemaster { id = model.id , name = model.name // , profilephoto=model.profilephoto , isdeleted = false , isactive = false }; await _DeliveryTimeMasterServices.CreateAsync(store); return(RedirectToAction(nameof(Index))); } else { return(View()); } }
public IActionResult Create() { var model = new DeliveryTimeCreateViewModel(); return(View(model)); }