コード例 #1
0
 //[AcceptVerbs("PUT")]
 //[Route("UpdateUser/{id}")]
 public L.CustomerOpinion UpdateCustomerOpinion(int id, CustomerOpinionInfo entityInfo)
 {
     return(_service.Update(id, new L.CustomerOpinion(entityInfo.SmileyId, entityInfo.Commentary, entityInfo.Created_at)));
 }
コード例 #2
0
 //[AcceptVerbs("POST")]
 //[Route("AddUser")]
 public L.CustomerOpinion AddCustomerOpinion(CustomerOpinionInfo entityInfo)
 {
     return(_service.Insert(new L.CustomerOpinion(entityInfo.SmileyId, entityInfo.Commentary, entityInfo.Created_at)));
 }