public static ProjectLocation ToEntity(this ProjectLocationModel model)
        {
            if (model == null)
                return null;

            var entity = new ProjectLocation
            {
                Location = model.Location.ToEntity(),
                LocationId = model.LocationId,
                Primary = model.Primary,
                Project = model.Project.ToEntity(),
                ProjectId = model.ProjectId
            };

            return entity;
        }
 /// <summary>
 /// Delete a project location mapping record
 /// </summary>
 /// <param name="projectLocation">Project location</param>
 public void DeleteProjectLocation(ProjectLocation projectLocation)
 {
     if (projectLocation == null)
         return;
     _projectLocationRepository.Delete(projectLocation, true);
 }