private bts_projectroles GetDetailForSpecificWorker(string workerName, List <bts_projectroles> detailsList)
        {
            //todo find out if there can be more entities for one username. what could it mean?
            bts_projectroles workerDetails = detailsList.FirstOrDefault(x => x.name == workerName);

            if (workerDetails == null)
            {
                workerDetails                = new bts_projectroles();
                workerDetails.name           = workerName;
                workerDetails.role_agreement = null;
            }

            return(workerDetails);
        }
 private bool IsWorkerEmployed(bts_projectroles details)
 {
     return(details.agreement_type == null ||
            details.agreement_type == "emp");
 }