Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Models.ModelOne> result = db.GetForModelOne(selectDate.SelectedDate.Value, userId);
- TimeSpan work = new TimeSpan();
- TimeSpan pause = new TimeSpan();
- foreach (Models.ModelOne element in result)
- {
- if (element.Action == "off")
- {
- work = work + element.Date.TimeOfDay;
- }
- else
- {
- work = work - element.Date.TimeOfDay;
- }
- }
- foreach (Models.ModelOne element in result)
- {
- if (element.Action == "on")
- {
- }
- else
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement