public static Model.mdlResult PushNotificationConfirmation(Core.Model.mdlPushNotificationConfirmationParam param) { List <SqlParameter> sp = new List <SqlParameter>() { new SqlParameter() { ParameterName = "@notificationID", SqlDbType = SqlDbType.NVarChar, Value = param.notificationID }, new SqlParameter() { ParameterName = "@action", SqlDbType = SqlDbType.NVarChar, Value = param.action }, }; var mdlRes = new Model.mdlResult(); //mdlRes.Result = DataFacade.DTSQLVoidCommand("DELETE FROM Log_Notification WHERE NotificationID = @notificationID AND Action = @action", sp); mdlRes.Result = DataFacade.DTSQLVoidCommand("UPDATE Log_Notification SET Recieved = 1 WHERE NotificationID = @notificationID AND Action = @action", sp); return(mdlRes); }
public static Model.mdlResult PushNotificationConfirmation(Core.Model.mdlPushNotificationConfirmationParam param) { return(PushNotificationFacade.PushNotificationConfirmation(param)); }