Пример #1
0
        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)));
 }
Пример #3
0
 public override Task <IActionResult> Post(AddEditExtendedAttributeCommand <int, int, Document, DocumentExtendedAttribute> command)
 {
     return(base.Post(command));
 }