Пример #1
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="ignoreNames"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success(object obj, IEnumerable <string> ignoreNames, bool usePassword = false)
 {
     return(ActionResultUtil.Success(obj, ignoreNames, usePassword));
 }
Пример #2
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="objs"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success <T>(List <T> objs, bool usePassword = false)
 {
     return(ActionResultUtil.Success(objs, usePassword));
 }
Пример #3
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <param name="msg"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success(string msg = "SUCCESS", bool usePassword = false)
 {
     return(ActionResultUtil.Success(msg, usePassword));
 }
Пример #4
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success(object obj, bool usePassword = false)
 {
     return(ActionResultUtil.Success(obj, usePassword));
 }
Пример #5
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="page"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success <T>(Page <T> page, bool usePassword = false)
 {
     return(ActionResultUtil.Success(page, usePassword));
 }
Пример #6
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="page"></param>
 /// <param name="ignoreNames"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success <T>(Page <T> page, IEnumerable <string> ignoreNames, bool usePassword = false)
 {
     return(ActionResultUtil.Success(page, ignoreNames, usePassword));
 }
Пример #7
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <param name="msg"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success(string msg = "SUCCESS")
 {
     return(ActionResultUtil.Success(msg));
 }
Пример #8
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="page"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success <T>(Page <T> page)
 {
     return(ActionResultUtil.Success(page));
 }
Пример #9
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="objs"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success <T>(List <T> objs)
 {
     return(ActionResultUtil.Success(objs));
 }
Пример #10
0
 /// <summary>
 /// 返回成功
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="usePassword"></param>
 /// <returns></returns>
 protected IActionResult Success(object obj)
 {
     return(ActionResultUtil.Success(obj));
 }
Пример #11
0
 /// <summary>
 /// 返回成功,Code为 1
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 protected IActionResult Success(object obj, string password)
 {
     return(ActionResultUtil.Success(obj, password));
 }