public async Task <IServiceResponse <bool> > DeleteFranchise(int franchiseId) { return(await HandleApiOperationAsync(async() => { await _franchiseService.RemoveFranchise(franchiseId); return new ServiceResponse <bool>(true); })); }
public void Delete(int id) { franchiseService.RemoveFranchise(id); }