Ejemplo n.º 1
0
        public BaseResponse <int> ChangePassword(FormDataCollection form)
        {
            BaseResponse <int> response = null;

            try
            {
                string password    = form.Password;
                string newPassword = form.NewPassword;
                string token       = Request.Headers["Auth"];
                businessLogicLayer.ChangePassword(token, password, newPassword);
                response = new BaseResponse <int>(0);
            }
            catch (Exception ex)
            {
                response = new BaseResponse <int> {
                    Error = ex.Message
                };
            }
            return(response);
        }