public void AddNewType(string type, long electionId) { Models.Type newType = new Models.Type() { TypeName = type, ElectionId = electionId }; TypeDal.Add(newType); }
public int Add(Model.type type) { return(dal.Add(type)); }