/// <summary> /// Method to delete contact /// </summary> /// <param name="cnt"></param> /// <returns></returns> public string DeletePromotion(PromotionModel cnt) { if (cnt != null) { int no = Convert.ToInt32(cnt.PromotionId); int result = _myPromotions.Delete(no); if (result == 1) { return("Promotion Deleted"); } else { return("Invalid Promotion"); } } else { return("Invalid Promotion"); } }
public void Delete <E>(E id) { PromotionRepository.Delete(id); }