public async Task <IServiceResponse <bool> > DeleteFranchise(int franchiseId)
        {
            return(await HandleApiOperationAsync(async() => {
                await _franchiseService.RemoveFranchise(franchiseId);

                return new ServiceResponse <bool>(true);
            }));
        }
示例#2
0
 public void Delete(int id)
 {
     franchiseService.RemoveFranchise(id);
 }