// PUT api/<controller>/5 /// <summary> /// Puts the specified identifier. /// </summary> /// <param name="id">The identifier.</param> /// <param name="value">The value.</param> /// <returns></returns> /// <exception cref="HttpResponseException"></exception> public T_CMS_Master_Contract Put(string id, [FromBody] T_CMS_Master_Contract value) { //if (value.LabourDOI.ToString().IndexOf("01/01/0001") == -1) //{ // value.LabourDOI = null; //} //if (value.PassportDOI.ToString().IndexOf("01/01/0001") == -1) //{ // value.PassportDOI = null; //} //if (value.OriginalDate.ToString().IndexOf("01/01/0001") == -1) //{ // value.OriginalDate = null; //} return(T_CMS_Master_ContractManager.UpdateItem(value)); }