public async Task <IHttpActionResult> DeleteFee(int id) { Fee fee = await rep.GetFeeAsync(id); if (fee == null) { return(NotFound()); } rep.DeleteFee(id); await rep.SaveAsync(); return(Ok(fee.toDTO())); }