public async Task <IResult <TId> > SaveAsync(AddEditExtendedAttributeCommand <TId, TEntityId, TEntity, TExtendedAttribute> request) { var response = await _httpClient.PostAsJsonAsync(Routes.ExtendedAttributesEndpoints.Save(typeof(TEntity).Name), request); return(await response.ToResult <TId>()); }
public virtual async Task <IActionResult> Post(AddEditExtendedAttributeCommand <TId, TEntityId, TEntity, TExtendedAttribute> command) { return(Ok(await _mediator.Send(command))); }
public override Task <IActionResult> Post(AddEditExtendedAttributeCommand <int, int, Document, DocumentExtendedAttribute> command) { return(base.Post(command)); }