Esempio n. 1
0
        public async Task <IActionResult> Delete(ObjectId id)
        {
            if (!ModelState.IsValid || id == ObjectId.Empty)
            {
                return(BadRequest());
            }

            var delRes = await _penaltyRepository.DeleteAsync(id);

            return(Ok(delRes));
        }