public IEnumerable <ProjectTaskViewModel> Post(ProjectTask e)
 {
     e.CreatedOn = DateTime.Now;
     e.CreatedBy = System.Web.HttpContext.Current.User.Identity.GetUserId();
     e.UpdatedOn = DateTime.Now;
     e.UpdatedBy = System.Web.HttpContext.Current.User.Identity.GetUserId();
     return(repository.InsertProjectTask(e));
 }
Ejemplo n.º 2
0
 public IEnumerable <ProjectTask> Post(ProjectTask pt)
 {
     return(ProjectTasksRepository.InsertProjectTask(pt));
 }