public async Task <IActionResult> PutBranchAsync([FromRoute] int id, [FromBody] Branches branches) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } branches.Id = id; await branchesService.UpdateBranchesAsync(branches); return(Ok()); }
public async Task <IActionResult> PutBranchAsync([FromRoute] int id, [FromBody] Branches branches) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } branches.Id = id; await branchesService.UpdateBranchesAsync(branches); return(Ok()); }