public async Task <IHttpActionResult> Delete(int orId, int trId) { if (orId <= 0 && trId <= 0) { throw new ArgumentNullException("id", "ID can't be negative or 0"); } return(await wordTranslationService.DeleteAsync(orId, trId) ? Ok() as IHttpActionResult : BadRequest() as IHttpActionResult); }