public async Task <QuantityDto> Create([FromBody] QuantityDto dto) { QuantityDto qdto = null; try { qdto = await QuantityAppService.CreateAsync(dto); } catch (Exception ex) { } return(qdto); }
public ActionResult AddQuantity([Bind(Prefix = "QuantityDto")] QuantityDto dto) { _pharmacyService.UpdateQuantityInMedicine(_context, dto.Quantity, dto.MedicineId); return(RedirectToAction("Index")); }
public async Task <QuantityDto> Update([FromRoute] int id, [FromBody] QuantityDto dto) { return(await QuantityAppService.UpdateAsync(id, dto)); }