Method CreatedResource
| Improve this Doc View SourceCreatedResource()
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result CreatedResource()
Returns
| Type | Description |
|---|---|
| Result |
CreatedResource(String)
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result CreatedResource(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | A message of success. |
Returns
| Type | Description |
|---|---|
| Result |
CreatedResource(Int32)
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result<CreatedId> CreatedResource(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | id |
Returns
| Type | Description |
|---|---|
| Result<CreatedId> |
CreatedResource(Int32, String)
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result<CreatedId> CreatedResource(int id, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | id | The ID of the created resource. |
| String | message | A message of success. |
Returns
| Type | Description |
|---|---|
| Result<CreatedId> |
CreatedResource(Guid)
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result<CreatedGuid> CreatedResource(Guid guid)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | guid |
Returns
| Type | Description |
|---|---|
| Result<CreatedGuid> |
CreatedResource(Guid, String)
Represents a situation in which the service successfully creates a resource.
Declaration
public static Result<CreatedGuid> CreatedResource(Guid guid, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | guid | The GUID assigned to the resource. |
| String | message | A message of success. |
Returns
| Type | Description |
|---|---|
| Result<CreatedGuid> |