public async Task <IActionResult> Update(SqlBranch branch, int id) { await _branchService.Update(branch, id); return(Ok(branch)); }
public async Task Update(SqlBranch branch, int id) { await _unitOfWork.BranchRepository.Update(branch, id); }
public async Task Add(SqlBranch branch) { await _branchService.Create(branch); }
public async Task Create(SqlBranch branch) { await _unitOfWork.BranchRepository.Create(branch); }