public bool Delete(int typeId, int attributeId) { try { var typeName = _context.Types.FirstOrDefault(x => x.Id == typeId).Name; typeName = typeName.ToLower(); var sql = SqlOptions.GenerateDeleteScript(typeName, attributeId); _context.Database.ExecuteSqlCommand(sql); return(true); } catch (Exception e) { Console.WriteLine(e); return(false); } }