public void RequestAdditionalInfo(Guid serviceId, string request) { User user = _serviceHubEntities.Users.SingleOrDefault(o => o.AspNetUserId == _aspNetUserId); AdditionalInfoRequest additionalInfoRequest = new AdditionalInfoRequest { Comment = request, UserId = user.Id, ServiceId = serviceId, TimeStamp = DateTime.Now, }; _serviceHubEntities.AdditionalInfoRequests.Add(additionalInfoRequest); }
public void RequestAdditionalInfo(Guid serviceId, Guid userId, string request) { AdditionalInfoRequest additionalInfoRequest = new AdditionalInfoRequest { Comment = request, UserId = userId, ServiceId = serviceId, TimeStamp = DateTime.Now, }; _serviceHubEntities.AdditionalInfoRequests.Add(additionalInfoRequest); }