public UniversalEntity RetrieveVodomerById(int id) { VodomerDAO entDAO = new VodomerDAO(); sc = new SqlCommand("RetrieveVodomerById"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@ID", id); return(entDAO.retrieveEntity(sc)); }
public int Create(Vodomer ent) { int createdid = 0; VodomerDAO entDAO = new VodomerDAO(); sc = new SqlCommand("CreateVodomer"); sc.CommandType = CommandType.StoredProcedure; addParameters(ent); createdid = entDAO.createEntity(sc); return(createdid); }
public bool Update(Vodomer ent) { bool success = true; VodomerDAO entDAO = new VodomerDAO(); sc = new SqlCommand("UpdateVodomer"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@ID", ent.ID); addParameters(ent); success = entDAO.updateEntity(sc); return(success); }
public int Create1(Vodomer ent) { int createdid = 0; VodomerDAO entDAO = new VodomerDAO(); sc = new SqlCommand("CreateVodomer1"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@exploited", ent.Exploited); addParameters(ent); createdid = entDAO.createEntity(sc); return(createdid); }