private AddressResult MapToEntity(IAddressResultAdd add) => new AddressResult { AddressRequestId = add.AddressRequestId, IsActive = true, State = State.Procesando };
public async Task <IAddressResult> Add(IAddressResultAdd add) { var entry = await context.AddressResults.AddAsync(MapToEntity(add)); await context.SaveChangesAsync(); return(entry.Entity); }