public async Task <IServiceResponse <bool> > UpateFranchise(int id, FranchiseDTO franchise) { return(await HandleApiOperationAsync(async() => { await _franchiseService.UpdateFranchise(id, franchise); return new ServiceResponse <bool>(true); })); }
public void Put(int id, [FromBody] FranchiseModel model) { franchiseService.UpdateFranchise(id, model); }