public async Task<IHttpActionResult> PutManufacture(int id, Manufacture manufacture)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            await _manageService.EditEntityAsync(manufacture);

            return StatusCode(HttpStatusCode.NoContent);
        }
 public ManufactureViewModel(Manufacture manufacture)
 {
     this.Id = manufacture.Id;
     this.Name = manufacture.Name;
 }
        public async Task<IHttpActionResult> PostmManufacture(Manufacture manufacture)
        {
            await _manageService.AddEntityAsync(manufacture);

            return CreatedAtRoute("Manufacture", new { id = manufacture.Id }, manufacture);
        }