Ejemplo n.º 1
0
        public bool PostSystemNotiReview(NotiReviewObj data)
        {
            bool result = false;

            using (IDbConnection connection = GetOpenConnection())
            {
                try
                {
                    string sql          = @"UPDATE [SystemNotification] 
                                   SET  [IsReview] = 1
                                   WHERE [SysNotiID] = @SysNotiID
                                        ";
                    var    resultUpdate = connection.Execute(sql, new { SysNotiID = data.SysNotiID }, commandType: CommandType.Text);
                    if (resultUpdate > 0)
                    {
                        result = true;
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            return(result);
        }
Ejemplo n.º 2
0
 public ResponseStatus PostSystemNotiReview([FromBody] NotiReviewObj data)
 {
     try
     {
         return(base.PostDataToAPINotAuth <ResponseStatus>(base.apiPathAndQuery, data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
        public ResponseStatus PostSystemNotiReview([FromBody] NotiReviewObj data)
        {
            ResponseStatus res = new ResponseStatus();

            try
            {
                res = process.PostSystemNotiReview(data);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(res);
        }
Ejemplo n.º 4
0
        public ResponseStatus PostSystemNotiReview(NotiReviewObj data)
        {
            ResponseStatus res = new ResponseStatus();

            try
            {
                var result = SODAL.PostSystemNotiReview(data);
                if (result)
                {
                    res.status = new Status();
                }
                else
                {
                    res.status         = new Status();
                    res.status.code    = "01";
                    res.status.message = "can't update data";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }