public static DAL.OPINIONS convertToDal(DTO.OPINION o) { return(new DAL.OPINIONS { Comment = o.Comment, LandingCode = o.LandingCode, OpinionCode = o.OpinionCode, Rating = o.Rating }); }
public IHttpActionResult addOpinion(DTO.OPINION opinion) { if (BL.opinionBL.addOpinion(opinion)) { return(Ok(true)); } else { return(Ok(false)); } }