public IActionResult AddPc(Pc pc) { if (pc != null && pc.type == "pc") { return(Ok(_pcStorage.AddPc(pc))); } else { string message = "Please use a valid character with type: pc"; return(BadRequest(message)); } }
public IActionResult AddNpc(Pc npc) { var race = npc.race; if (npc != null && npc.type == "npc") { return(Ok(_pcStorage.AddPc(npc))); } else { string message = "Please use a valid character with type: npc"; return(BadRequest(message)); } }