示例#1
0
        public IActionResult DeleteProtestoType(PostBaseModel model)
        {
            var protestoType = db.ProtestoType.Find(model.Id);

            db.ProtestoType.Remove(protestoType);
            db.SaveChanges();
            return(Ok());
        }
        public IActionResult DeleteResistanceReason(PostBaseModel model)
        {
            var resistanceReason = db.ResistanceReason.Find(model.Id);

            db.ResistanceReason.Remove(resistanceReason);
            db.SaveChanges();
            return(Ok());
        }
        public IActionResult DeleteCorporation(PostBaseModel model)
        {
            var corporation = db.Corporation.Find(model.Id);

            db.Corporation.Remove(corporation);
            db.SaveChanges();
            return(Ok());
        }
示例#4
0
        public IActionResult DeleteTradeUnion(PostBaseModel model)
        {
            var tradeUnion = db.TradeUnion.Find(model.Id);

            db.TradeUnion.Remove(tradeUnion);
            db.SaveChanges();
            return(Ok());
        }