public void DeleteAward() { var deleteAwardId = Guid.Parse("7816ec31-2185-4e0f-a32c-64d970eff001"); var cntBefore = AwardHelper.AwardModelList.Count; AwardHelper.DeleteEntity(deleteAwardId); var cntAfter = AwardHelper.AwardModelList.Count; Assert.AreEqual(cntBefore, cntAfter + 1, "Error in delete award..."); }
public ActionResult Delete(AwardModel model) { try { AwardHelper.DeleteEntity(model.Id); return(RedirectToAction("Index")); } catch { return(View()); } }