Ejemplo n.º 1
0
        public async static Task <SYS_tblUserDRO> DeleteUser(string user_code_list, string username, string language_id, SYS_tblActionLogDTO actionLog)
        {
            SYS_tblUserDRO result = new SYS_tblUserDRO();

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

                result = await SYS_tblUserDAO.DeleteUser(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);
        }
Ejemplo n.º 2
0
 public string DeleteUser(string userName, string username, string language_id)
 {
     return(daoUser.DeleteUser(userName, username, language_id));
 }