public HttpResponseMessage GetBankDetails(HttpRequestMessage req, User user)
        {
            // Logger.WriteLog(LogLevelL4N.INFO, "Called ForgotPassword api");
            if (user != null && !String.IsNullOrEmpty(user.UserId) && !String.IsNullOrEmpty(user.Password))
            {
                Validation.UserCheck(user);
                if (Validation._IsSuccess)
                {
                    BL_Login account = new BL_Login();
                    List <DL_BankDetailsReturn> accountDetailsReturn = account.GetBankDetails(user);

                    if (account._IsSuccess)
                    {
                        return(req.CreateResponse <List <DL_BankDetailsReturn> >(HttpStatusCode.OK, accountDetailsReturn));
                    }

                    return(req.CreateErrorResponse(HttpStatusCode.InternalServerError, "ServerError"));
                }
                return(req.CreateErrorResponse(HttpStatusCode.Unauthorized, "Unauthorized"));
            }

            return(req.CreateErrorResponse(HttpStatusCode.BadRequest, "Bad Request"));
        }