예제 #1
0
 public HttpResponseMessage InsertAsSpecialProduct(int LoggedInUserId, HotSpecialProductEntity hotSpecialProductEntity)
 {
     try
     {
         var result = _ProductServices.InsertAsSpecialProduct(LoggedInUserId, hotSpecialProductEntity);
         return(Request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
        public int InsertAsSpecialProduct(int LoggedInUserId, HotSpecialProductEntity hotSpecialProductEntityGenericRepository)
        {
            SqlParameter[] sqlParameter = new SqlParameter[] {
                new SqlParameter("special_productid", hotSpecialProductEntityGenericRepository.special_productid)
                , new SqlParameter("store_id", hotSpecialProductEntityGenericRepository.store_id)
                , new SqlParameter("LoggedInUserId", LoggedInUserId)
                , new SqlParameter("product_id", hotSpecialProductEntityGenericRepository.product_id)
                , new SqlParameter("priority", hotSpecialProductEntityGenericRepository.priority)
                , new SqlParameter("startDate", hotSpecialProductEntityGenericRepository.startDate)
                , new SqlParameter("endDate", hotSpecialProductEntityGenericRepository.endDate)
                , new SqlParameter("status", hotSpecialProductEntityGenericRepository.status)
                , new SqlParameter("created_by", hotSpecialProductEntityGenericRepository.created_by)
            };
            int result = objGenericRepository.ExecuteSQL <int>("InsertAsSpecialProduct", sqlParameter).FirstOrDefault();

            return(result);
        }