public BasicResponse <List <B_CallpointlistInfo> > GetB_CallByBCallId(B_CallpointlistGetRequest b_CallpointlistRequest) { var result = _Repository.Datas.Where(c => c.BCallId == b_CallpointlistRequest.Id).ToList(); var callpointinfos = ObjectConverter.CopyList <B_CallpointlistModel, B_CallpointlistInfo>(result).ToList(); var response = new BasicResponse <List <B_CallpointlistInfo> >(); response.Data = callpointinfos; return(response); }
public BasicResponse <B_CallpointlistInfo> GetB_CallpointlistById(B_CallpointlistGetRequest b_CallpointlistRequest) { var result = _Repository.GetB_CallpointlistById(b_CallpointlistRequest.Id); var b_CallpointlistInfo = ObjectConverter.Copy <B_CallpointlistModel, B_CallpointlistInfo>(result); var b_Callpointlistresponse = new BasicResponse <B_CallpointlistInfo>(); b_Callpointlistresponse.Data = b_CallpointlistInfo; return(b_Callpointlistresponse); }