Example #1
0
        public async static Task <PRO_tblStoreDRO> DeleteStore(string username, string language_id, string store_id_list, SYS_tblActionLogDTO actionLog)
        {
            PRO_tblStoreDRO result = new PRO_tblStoreDRO();

            try
            {
                string url = string.Format(@"{0}/DeleteStore?Username={1}&LanguageID={2}&StoreIDList={3}", GetBaseUrl(), username, language_id, store_id_list);

                result = await PRO_tblStoreDAO.DeleteStore(url);

                if (string.IsNullOrEmpty(result.ResponseItem.Message))
                {
                    result.ResponseItem = await SYS_tblActionLogBUS.InsertUpdateLog(actionLog);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                result.ResponseItem.Message = ex.Message;
            }

            return(result);
        }
Example #2
0
 public string DeleteStore(string store_id, string store_code, string username, string language_id)
 {
     return(daoStore.DeleteStore(store_id, store_code, username, language_id));
 }