Exemple #1
0
        public bool DeleteAllItem(DeleteAllItem model)
        {
            DynamicParameters p = new DynamicParameters();

            p.Add("@todoid", model.todoid);
            bool result = SqlMapper.ExecuteScalar <bool>(con, "dropallitem", param: p, commandType: CommandType.StoredProcedure);

            return(result);
        }
 public bool DeleteAllItem([FromBody] DeleteAllItem model)
 {
     return(this.ser.DeleteAllItem(model));
 }
 public bool DeleteAllItem(DeleteAllItem model)
 {
     return(this.repo.DeleteAllItem(model));
 }