Ejemplo n.º 1
0
        public async Task <JsonResult> DeleteEducationContent(Guid EducationContentId)
        {
            if (EducationContentId == Guid.Empty)
            {
                return(Json(new { failed = true, message = "Geçersiz id." }));
            }

            var educationContent = await _educationService.DeleteEducationContentAsync(EducationContentId);

            if (educationContent != null)
            {
                return(Json(new { failed = false, message = "Deleted education content." }));
            }
            else
            {
                return(Json(new { failed = true, message = "An error occurred" }));
            }
        }