C#

General discussions about the c# language, Squirrels | gist.gi...
Jul 24, 2014 21:33
*zens
Jul 24, 2014 21:33
hello, citixens
Jul 1, 2014 23:15
Wardy lol)
Jul 1, 2014 23:15
never do
Jul 1, 2014 23:13
probably any of above is correct. Now fixing routes :)Thank you!
Jul 1, 2014 23:12
other params are extra
Jul 1, 2014 23:11
so drch is right
2
Jul 1, 2014 23:11
as we're getting list of Depts, so it should start from dept
Jul 1, 2014 23:08
probably i can make my own and put {action} into routing
Jul 1, 2014 23:07
hm... i just started with WebApi, thought there only possible onlyGet, put, Post and Delete actions...
Jul 1, 2014 23:06
trying now...
Jul 1, 2014 23:06
hmmm....
Jul 1, 2014 22:45
0
Q: RESTful - get list of resources by owner ID

LINQ2VodkaI need to get list of departments who belong to a specific division. The /dept/1 URL, according to the REST basics, should be used for getting a specific department by ID, so it can't be used here. Then I have the following options: /dept/division/1 Doesnt look as true REST. Also, I don'...

Jul 1, 2014 22:25
In my WebApi I need to have more operations than CRUD (4 operations) against one entity. Say I need to retrieve list of departments belonging to a specific division. The "/dept/1" URL is for getting dept #1, so what url should be for depts of a division?
Jul 1, 2014 21:46
the logic that updates fields. In this case it's reasonable at least
Jul 1, 2014 21:44
nothing to refactor. You create or get the entity from database, then update its fields with the model values and then save to DB. 2nd and 3rd step are same.
Jul 1, 2014 21:44
first looks more clever lol
Jul 1, 2014 21:43
i have a few options... either to make a 3rd method that has common logic and call it from Post and Put... or just call one action from another
Jul 1, 2014 21:41
to obtain 80% duplicated code?
Jul 1, 2014 21:41
before i started to use WebApi i had a single action for both
Jul 1, 2014 21:40
i have very similar logic for creating a new or updating an existing entity
Jul 1, 2014 21:39
how can I make a WebApi action to accept both POST and PUT methods?
Jul 1, 2014 20:42
rubles are OK?
Jul 1, 2014 20:36
how to enable CORS globally for MVC(not webApi) apps?
Jul 1, 2014 20:35
hi all
Jul 1, 2014 20:35
all you need is love
Jul 1, 2014 01:02
bad
Jul 1, 2014 00:46
surely it's time to rest
Jul 1, 2014 00:34
girls.ToList().ForEach(g => NotifyNobodyHome(g))
Jul 1, 2014 00:32
beer inner join vodka
Jul 1, 2014 00:31
:)
Jul 1, 2014 00:17
.Select(r => r.Shots).Take(3)
Jul 1, 2014 00:16
LINQ2Rum now...
Jun 30, 2014 17:11
cool :))
Jun 30, 2014 15:35
+1
Jun 30, 2014 15:08
sorry, been away :) Ok, now will carefully read what you said, thank you
Jun 30, 2014 14:43
markdown?
Jun 30, 2014 14:33
most of JS BB editors can tramslate bb to html in the editor like TEXTAREA, but i need to transate say all the topic messages tread that is just displayed, not being edited
Jun 30, 2014 14:30
how people usually do with bb? am i wanting something wrong?
Jun 30, 2014 14:29
Let me explain detailed. I want user to type BB, then save BB to database, then translate it to html when displaying to user. I could use some 3rd party .NET lib to translate bb to html on server, but i already tried and now see JS bb editors and .NET libs are not fully compatible, some of them dont "understand" tags the other side does. THats whyi'd like the same lib encode and decode BB.
Jun 30, 2014 14:26
hey)
Jun 30, 2014 14:26
Really need BBcode editor that also can translate bb to html on client side with no instance at UI (in TextArea or wherever else). Is there such an editor?
Jun 30, 2014 14:26
JS chat didnt give me an answer, hoping you will...
Jun 30, 2014 14:26
Hi all!
Jun 22, 2014 18:59
guys, what's the best practice for working with BB-code forums? Type bb, store bb in database, display html?
Jun 22, 2014 18:58
hi all
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 30, 2014 14:22
so is there such bb-editor?
Jun 30, 2014 14:22
im not 80 lvld in cool jokes
Jun 30, 2014 14:21
Bros, really need BBcode editor that also can translate bb to html on client side with no instance at UI (in TextArea or wherever else)
Jun 30, 2014 14:20
Hi everyone