protected override Producto MapUpdateRequestToEntity(UpdateProductRequest updateRequest) { var producto = repository.FirstOrDefault(x => x.Id == updateRequest.IdProducto); producto.Descripcion = updateRequest.Descripcion; producto.Talle = updateRequest.Talle; producto.Color = colorBusiness.GetById(updateRequest.IdColor); return(producto); }
public async Task <CatalogResponse> Get(int id) => await business.GetById <CatalogResponse>(id);
public async Task <EmployeeResponse> Get(int id) => await business.GetById <EmployeeResponse>(id);
public async Task <Faculty> Get(int id) => await business.GetById <Faculty>(id);
// GET: api/Producto/5 public virtual TDTO Get(TId id) { return(Mapper.Map <TDTO>(_genericBusiness.GetById(id))); }