Esempio n. 1
0
    public ActionResult SaveZombie(IncidentActionZombie zombie)
    {
        if (zombie.Id > 0)
        {
            return(zombie.Update());
        }

        return(zombie.Insert());
    }
Esempio n. 2
0
    public ActionResult DeleteZombie(long zombieId, long auditoryId, int companyId)
    {
        var zombie = new IncidentActionZombie
        {
            Id         = zombieId,
            AuditoryId = auditoryId,
            CompanyId  = companyId
        };

        return(zombie.Delete());
    }