Example #1
0
 public int DeleteBadge(Badge badge)
 {
     try
     {
         return(_service.DeleteBadge(badge));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #2
0
        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));
        }
Example #3
0
 /// <summary>
 /// Deletes badge cpecified by id
 /// </summary>
 /// <param name="badgeId"></param>
 public void DeleteBadge(Guid badgeId)
 {
     _badgeService.DeleteBadge(badgeId);
 }