Beispiel #1
0
        public Item NewItem(newitem model)
        {
            DynamicParameters p = new DynamicParameters();

            p.Add("@TodoId", model.todoid);
            p.Add("@Name", model.ItemName);
            Item newitem = SqlMapper.Query <Item>(con, "NewItem", param: p, commandType: CommandType.StoredProcedure).First();;

            return(newitem);
        }
 public Item NewItem([FromBody] newitem model)
 {
     return(this.ser.NewItem(model));
 }
 public Item NewItem(newitem model)
 {
     return(this.repo.NewItem(model));
 }