Exemplo n.º 1
0
 /// <summary>
 /// authenticateUser
 /// </summary>
 /// <param name="userDetail"></param>
 /// <returns></returns>
 public UserModel authenticateUser(UserModel userDetail)
 {
     userDetail = userDetailProvider.authenticateUser(userDetail);
     if (null != userDetail && userDetail.ResultType == (int)CommonConstant.ReturnResult.Success)
     {
         userDetail.TokenCreated = DateTime.Now;
         userDetail.Token        = CommonMethod.ConvertObjectToJsonString <UserModel>(userDetail);
     }
     return(userDetail);
 }