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

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