Beispiel #1
0
 public bool IsProjectNameUnique(string name)
 {
     return(_projects.GetAll().All(p => !p.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)));
 }
Beispiel #2
0
 // GET api/projects
 public IEnumerable <Object> GetAll()
 {
     return(Context.GetAll());
 }
Beispiel #3
0
 public IEnumerable <Project> Get()
 {
     return(_projects.GetAll());
 }
        // GET: Projects
        public IActionResult Index()
        {
            var Projects = _Projects.GetAll();

            return(View(Projects));
        }