public int DeleteBadge(Badge badge) { try { return(_service.DeleteBadge(badge)); } catch (Exception e) { throw e; } }
public async Task <IHttpActionResult> DeleteBadge(long id) { Badge badge = await _badgeService.FindBadge(id); if (badge == null) { return(NotFound()); } await _badgeService.DeleteBadge(id); return(Ok(badge)); }
/// <summary> /// Deletes badge cpecified by id /// </summary> /// <param name="badgeId"></param> public void DeleteBadge(Guid badgeId) { _badgeService.DeleteBadge(badgeId); }