public TaskSignupViewModel(TaskUsers taskSignup) { Id = taskSignup.Id; Status = taskSignup.Status; StatusDateTimeUtc = taskSignup.StatusDateTimeUtc; StatusDescription = taskSignup.StatusDescription; if (taskSignup.Task != null) { TaskId = taskSignup.Task.Id; TaskName = taskSignup.Task.Name; } if(taskSignup.User != null) { UserId = taskSignup.User.Id; UserName = taskSignup.User.UserName; } }
Task IPrepOpsDataAccess.UpdateTaskSignup(TaskUsers value) { _dbContext.TaskSignup.Update(value); return _dbContext.SaveChangesAsync(); }
Task IPrepOpsDataAccess.UpdateTaskSignup(TaskUsers value) { _dbContext.TaskSignup.Update(value); return(_dbContext.SaveChangesAsync()); }
Task IPrepOpsDataAccess.AddTaskSignup(TaskUsers taskSignup) { _dbContext.TaskSignup.Add(taskSignup); return _dbContext.SaveChangesAsync(); }
Task IPrepOpsDataAccess.AddTaskSignup(TaskUsers taskSignup) { _dbContext.TaskSignup.Add(taskSignup); return(_dbContext.SaveChangesAsync()); }