public async Task <IActionResult> Create([FromForm] string id, [FromForm] string name) { if (string.IsNullOrWhiteSpace(id)) { throw new ArgumentNullException(nameof(id)); } if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException(nameof(name)); } var bp = await _businessProcessRepositary.GetById(new ObjectId(id)); var bps = new BusinessProcessState(name, bp); await _emulatorStateRepositary.Save(bps); return(RedirectToAction("Index")); }
public async Task <IActionResult> Edit(string id) { return(View(await _businessProcessRepositary.GetById(new ObjectId(id)))); }