This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IHttpActionResult Post([FromBody]Customer cust) | |
{ | |
var newCust = _Repository.InsertCustomer(cust); | |
if (newCust != null) | |
{ | |
return Created<Customer>(Request.RequestUri + newCust.ID.ToString(), newCust); | |
} | |
else | |
{ | |
return Conflict(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.extend({ | |
trackChanges: function() { | |
$(":input", this).keyup(function() { | |
$(this.form).data("changed", true); | |
}); | |
var form = $(this); | |
$(form).submit(function() { | |
form.data("submitted", true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ComboNumericHeaderCell : DataGridViewColumnHeaderCell | |
{ | |
public readonly ComboBox _comboBox; | |
public readonly NumericUpDown _numericUpDown; | |
public ComboNumericHeaderCell() | |
{ | |
_comboBox = new ComboBox(); | |
_numericUpDown = new NumericUpDown(); | |
_comboBox.Font = Control.DefaultFont; |
NewerOlder