Uat_Study
parent
875e1e1c7b
commit
d5f4aadd82
|
@ -190,7 +190,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IResponseOutput<T> Result<T>(bool success, T data = default)
|
public static IResponseOutput<T> Result<T>(bool success, T data = default)
|
||||||
{
|
{
|
||||||
return success ? Ok<T>(data) : NotOk<T>("Saved failed");
|
return success ? Ok<T>(data) : NotOk<T>("Saved failed",data);
|
||||||
}
|
}
|
||||||
|
|
||||||
///// <summary>
|
///// <summary>
|
||||||
|
|
Loading…
Reference in New Issue