public void CreateWorkTest() { var work = new Work() { WorkID = "Test000000", WorkContents = "測試內容", WorkName = "測試用", }; _work.Create(work); _work.Delete("Test000000"); Assert.Pass(); }
public IActionResult CreateWork(Work work) { _work.Create(work); return(RedirectToAction("Work")); }