Esempio n. 1
0
        public async Task <ResultPT> PutAsync(int id, [FromBody] User_MasterDTO value)
        {
            ResultPT result = null;

            if (ModelState.IsValid)
            {
                using (User_MasterBAL User_MasterBAL = new User_MasterBAL())
                {
                    result = await User_MasterBAL.UpdateAsync(value);
                }
            }
            return(result);
        }
Esempio n. 2
0
        public async Task <User_MasterDTO> GetAccess(string username, string password)
        {
            User_MasterDTO User_MasterDTO = null;

            using (User_MasterBAL user_Master = new User_MasterBAL())
            {
                WebApiHelper.Crypt common = new WebApiHelper.Crypt();
                //var encpassword=common.EncryptText(password, "password");
                var reuslt = await user_Master.LogIN(username, password);

                if (reuslt.TransactionStatus == WebApiCommon.Enums.ResultStatus.Success)
                {
                    User_MasterDTO = (User_MasterDTO)reuslt.ReturnObject;
                }
            }
            return(User_MasterDTO);
        }