Esempio n. 1
0
        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...");
        }
Esempio n. 2
0
 public ActionResult Delete(AwardModel model)
 {
     try
     {
         AwardHelper.DeleteEntity(model.Id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }