Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ValidateModel(u);
- [DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)]
- public DateTime FECHA_ADQ { get; set; }
- foreach (var a in excel.Worksheet<ViewModel>(sheet.First())) {
- //Validations//
- try {
- Context db = new Context();
- ViewModel u = a;
- ModelState.Clear();
- ValidateModel(u);
- //Insert//
- }catch(Exception){...}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement