public ActionResult Add(tbl_DiscountCompaign obj)
        {
            obj.CreateDate = DateTime.Now;
            var data = _discountCompaign.Addnew(obj);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
 public bool Addnew(tbl_DiscountCompaign obj)
 {
     return(_unitOfWork.DiscountcompaignRepository.Insert(obj));
 }