public IHttpActionResult GetConsumerById(GetConsumerById_Input input) { GetConsumer_ResultSet consumer = dal.GetConsumerById(input); return(Ok(consumer)); }
public GetConsumer_ResultSet GetConsumerById(GetConsumerById_Input input) { GetConsumer_ResultSet consumer = db.ConsumingUserByIdInput.CallStoredProc(input).ToList <GetConsumer_ResultSet>().FirstOrDefault(); return(consumer); }