public string CreateTemplateWithSliders(PerformanceEvaluationTemplate _template) { var template = new PerformanceEvaluationTemplate(); template.Title = _template.Title; template.Description = _template.Description; template.Instructions = _template.Instructions; template.AccountID = SecurityContextManager.Current.CurrentAccount.ID; template.ChangedBy = ((Person)SecurityContextManager.Current.CurrentUser).ID; template.DateCreated = DateTime.Now; template.EnteredBy = ((Person)SecurityContextManager.Current.CurrentUser).ID; template.LastUpdated = DateTime.Now; _service.SaveTemplate(template); return("1:Template Successfully Created!:/Evaluations/Template/" + template.ID.ToString()); }
public string CreateTemplate(PerformanceEvaluationTemplate _template) { var template = new PerformanceEvaluationTemplate(); template.Title = _template.Title; template.Description = _template.Description; template.Instructions = _template.Instructions; template.AccountID = SecurityContextManager.Current.CurrentAccount.ID; template.ChangedBy = ((Person)SecurityContextManager.Current.CurrentUser).ID; template.DateCreated = DateTime.Now; template.EnteredBy = ((Person)SecurityContextManager.Current.CurrentUser).ID; template.LastUpdated = DateTime.Now; _service.SaveTemplate(template); ICacheStorage _cache = new MemcacheCacheAdapter(); _cache.Remove(SecurityContextManager .Current .CurrentUser.AccountID.ToString() + "_EvaluationTemplateList"); return("1:Template Successfully Created!:/Evaluations/Templates/" + template.ID.ToString()); }
public void DeleteTemplate(PerformanceEvaluationTemplate item) { new PerformanceEvaluationTemplateRepository().Delete(item); }
public PerformanceEvaluationTemplate SaveTemplate(PerformanceEvaluationTemplate item) { return(new PerformanceEvaluationTemplateRepository().SaveOrUpdate(item)); }