public IActionResult Update([FromBody] vm.Batch value) { var data = this.Mapper.Map <Batch>(value); data.PharmacyId = this.Pharmacy; this.Batches.Update(data); return(this.Ok()); }
public IActionResult Create([FromBody] vm.Batch value) { var data = this.Mapper.Map <Batch>(value); data.PharmacyId = this.Pharmacy; var id = this.Batches.Insert(data); return(this.Ok(id)); }