Esempio n. 1
0
        /// <summary>
        /// Method Name     : CheckPassword
        /// Author          : Vivek Bhavsar
        /// Creation Date   : 23 Jan 2018
        /// Purpose         : validate password from service.
        /// Revision        :
        /// </summary>
        /// <param name="passwordModel"></param>
        /// <returns></returns>
        private async Task <APIResponse <CustomerModel> > CheckPasswordAsync(PasswordModel passwordModel)
        {
            APIResponse <CustomerModel> apiResponse = await loginAPIServies.GetCustomerProfileData(UtilityPCL.LoginCustomerData);

            if (apiResponse.STATUS)
            {
                UtilityPCL.LoginCustomerData            = apiResponse.DATA;
                UtilityPCL.LoginCustomerData.CustomerId = apiResponse.DATA.CustomerId;

                apiResponse = loginAPIServies.CheckPassword(passwordModel, UtilityPCL.LoginCustomerData);
                if (!apiResponse.STATUS)
                {
                    apiResponse.Message = Resource.msgCorrectPassword;
                }
            }

            return(apiResponse);
        }