Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IHttpActionResult AddSongToParty(string partyId, string songId) { try { var party = partyService.AddSongToParty(int.Parse(partyId), songId); songService.AddSongCount(songId); return(Ok(party)); } catch (FormatException e) { ErrorController.Errors.Add(e); return(InternalServerError(e)); } catch (Exception e) { ErrorController.Errors.Add(e); return(InternalServerError(e)); } }