Posts by Lucas Santos • 1 point
4 posts
-
-2
votes1
answer91
viewsA: How to deal with business rules?
You can create parallel validation classes and you can use a lib like Fluentvalidation to add the rules you want to apply and validate before processing something.…
-
0
votes2
answers786
viewsA: Modal display when submitting a form
I believe you want to use one Gif de loading. Well, you can use in Jquery (Ajax), as the example below: //Este código fica após o Success e Error do Ajax beforeSend: function () { $('.loader').css({…
-
0
votes0
answers108
viewsQ: Grid Telerik Kendo UI - Delete Row JS and call function
I am adding lines normally and adding in a Javascript array, I need to remove a selected row and remove it from the array and last save to the database. The excerpt below is not working properly,…
-
-1
votes1
answer56
viewsQ: How to update a User Entity that is converted into application?
Code: public int UpdateUser(User usr) { db.Users.Attach(usr.ToApplication()); db.Entry(usr.ToApplication()).State = System.Data.Entity.EntityState.Modified; return db.SaveChanges(); } Error:…