コード例 #1
0
        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);
        }
コード例 #2
0
 public async Task <CatalogResponse> Get(int id) => await business.GetById <CatalogResponse>(id);
コード例 #3
0
 public async Task <EmployeeResponse> Get(int id) => await business.GetById <EmployeeResponse>(id);
コード例 #4
0
 public async Task <Faculty> Get(int id) => await business.GetById <Faculty>(id);
コード例 #5
0
 // GET: api/Producto/5
 public virtual TDTO Get(TId id)
 {
     return(Mapper.Map <TDTO>(_genericBusiness.GetById(id)));
 }