Exemple #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            try
            {
                var      notDeletableIds = new List <int>();
                string[] deleteIndexList = DeleteIds.Split(',');
                foreach (string index in deleteIndexList)
                {
                    var data = new CustomTimeLogDataModel();
                    data.CustomTimeLogId = int.Parse(index);

                    foreach (string index1 in deleteIndexList)
                    {
                        var data1 = new CustomTimeLogDataModel();
                        data1.CustomTimeLogId = int.Parse(index1);
                        CustomTimeLogDataManager.Delete(data1, SessionVariables.RequestProfile);
                    }
                    DeleteAndRedirect();
                }
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
Exemple #2
0
        public void Delete(string value)
        {
            var dataQuery = new CustomTimeLogDataModel();

            dataQuery.CustomTimeLogId = int.Parse(value);
            CustomTimeLogDataManager.Delete(dataQuery, SessionVariables.RequestProfile);
        }