public WorkingHoursViewModel() { _workingHoursService = DependencyService.Resolve <WorkingHoursService>(); CreateRecordCommand = new Command(OnCreateRecordTapped); RefreshCommand = new AsyncCommand(RefreshAsync); DeleteRecordCommand = new AsyncCommand <object>(DeleteRecordAsync); }
public CreateWorkingHoursRecordViewModel() { _requestId = RequestIdProvider.GetRequestId(); _tasksService = DependencyService.Resolve <TasksService>(); _workingHoursService = DependencyService.Resolve <WorkingHoursService>(); CreateCommand = new AsyncCommand(CreateRecordAsync); Hours = "1"; }