public void UpdateDetails(AccountValueUpdateObject value) { var sql = $@" UPDATE Employees set lastname= @Value WHERE employeeid=1 ;" .Execute(new { Value = value.Lastname }); if (sql < 0) { throw new Exception($"Result returned {sql}"); } }
public void Put([FromBody] AccountValueUpdateObject value) { new BalanceUpdatingService().UpdateDetails(value); }
//PUT api/AccountBalance/BOO40003 //Do not add currency into url public void Put(string id, [FromBody] AccountValueUpdateObject value) { //new BalanceUpdatingService().UpdateBalance(id, value); }