//[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))); }
//[AcceptVerbs("POST")] //[Route("AddUser")] public L.CustomerOpinion AddCustomerOpinion(CustomerOpinionInfo entityInfo) { return(_service.Insert(new L.CustomerOpinion(entityInfo.SmileyId, entityInfo.Commentary, entityInfo.Created_at))); }