public IActionResult EditTypeProjectSeve(TypeProject TypeProject)
 {
     TypeProject.Date_Update = DateTime.Now;
     _context.Update(TypeProject);
     _context.SaveChanges();
     return(Json(TypeProject));
 }
 public IActionResult AddTypeProject(TypeProject TypeProject)
 {
     TypeProject.Date_Create = DateTime.Now;
     TypeProject.Date_Update = DateTime.Now;
     TypeProject.DelStatus   = false;
     _context.TypeProject.Add(TypeProject);
     _context.SaveChanges();
     return(Json("OK"));
 }
Exemplo n.º 3
0
 public static TypeProject GetTypeProject(this TypeProject t)
 {
     if (t == null)
     {
         return(null);
     }
     return(new TypeProject()
     {
         id = t.id,
         type_project_ru = t.type_project_ru,
         type_project_en = t.type_project_en,
         description_type_project_ru = t.description_type_project_ru,
         description_type_project_en = t.description_type_project_en,
     });
 }