Exemplo n.º 1
0
        /// <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");
            }
        }
Exemplo n.º 2
0
 public void Delete <E>(E id)
 {
     PromotionRepository.Delete(id);
 }