public void Update(StudySetupMap entity)
        {
            var currnt = All.FirstOrDefault(m => m.Id == entity.Id);

            if (currnt != null)
            {
                currnt.UpdatedBy        = Thread.CurrentPrincipal.Identity.Name;
                currnt.UpdatedOn        = DateTime.UtcNow;
                currnt.IsActive         = entity.IsActive;
                currnt.OrganizationId   = entity.OrganizationId;
                currnt.StepSetupStatus  = entity.StepSetupStatus;
                currnt.StudyId          = entity.StudyId;
                currnt.StudySetupStepId = entity.StudySetupStepId;
            }
        }
 public void Insert(StudySetupMap entity)
 {
     _context.StudySetupMaps.Add(entity);
 }
 public void Delete(StudySetupMap entity)
 {
     _context.StudySetupMaps.Remove(entity);
 }