Posts by John • 189 points
8 posts
-
-1
votes1
answer33
viewsQ: Get email from current User
I developed an application, however I want to get the current user email (because aesthetic and requirements issues). I can only get the user name through the following code:…
-
0
votes2
answers1286
viewsQ: Sort date by month
In the development of a query, I’m having a problem sorting the months. For example, in the chart appear to me first April, then January, June, August... And what I wanted to get, was the order of…
-
2
votes1
answer84
viewsQ: Sql Procedimento
Good afternoon, can anyone help me create a procedure in the SQL database ? To make a reservation for a room, I have to select a room and declare the Date Entry and Date. What I want, is to make a…
-
0
votes0
answers120
viewsQ: Mvc dbSet<Reserve> does not contain a definition for getAll()
I created this method, however I get the error described above, someone knows a possible solution? public IEnumerable<Reserva> GetBookingsByRoomId(int Id) { HotelEntities db = new…
-
3
votes1
answer50
viewsQ: SQL Problems with query
I am having problems with the following query: SELECT Cliente.Nome, (Reserva.NumeroNoites) TotalNoites From Reserva inner join Cliente on Reserva.ID_Cliente = Cliente.ID_Cliente group by…
-
1
votes1
answer65
viewsQ: Mvc List only available rooms and not busy ones
I have the following problem: A reservation has associated with you a client and a room. When creating a reservation, I have to fill in some fields (such as customer name, date of arrival, date of…
-
2
votes2
answers73
viewsQ: MVC Encrypt/ hide information according to User function
Can anyone help encrypt information according to the user’s role? Basically I want the following: if the user function is = "Admin" the phone number appears 435267456. If the User function is =…
asp.net-mvcasked John 189 -
0
votes3
answers87
viewsQ: ASP.net MVC error
I have this code, working perfectly as I wish @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="container"> <form class="well form-horizontal">…