Welcome to mirror list, hosted at ThFree Co, Russian Federation.

HomeController.fs « Controllers « aspnetcoremvc11 « fsharp-aspnetcoremvc11 « test-projects « tests « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a405882fdaa530ce72ccde88b6fcca2059d7061f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace aspnetcoremvc11.Controllers

open System
open System.Collections.Generic
open System.Linq
open System.Threading.Tasks
open Microsoft.AspNetCore.Mvc

type HomeController() = 
    inherit Controller()
    member this.Index() = this.View()
    
    member this.About() = 
        this.ViewData.["Message"] <- "Your application description page."
        this.View()
    
    member this.Contact() = 
        this.ViewData.["Message"] <- "Your contact page."
        this.View()
    
    member this.Error() = this.View()