public async Task <ProjectionDomainModel> UpdateProjection(ProjectionDomainModel dataToUpdate) { Projection projection = new Projection() { Id = dataToUpdate.Id, AuditoriumId = dataToUpdate.AuditoriumId, MovieId = dataToUpdate.MovieId, DateTime = dataToUpdate.ProjectionTime }; var data = _projectionsRepository.Update(projection); if (data == null) { return(null); } _projectionsRepository.Save(); ProjectionDomainModel domainModel = new ProjectionDomainModel() { Id = data.Id, AuditoriumId = data.AuditoriumId, MovieId = data.MovieId, ProjectionTime = data.DateTime }; return(domainModel); }