/// <summary> /// /// </summary> /// <param name="Source"></param> /// <returns></returns> internal XeGatewaySourceModel Create(XeGatewaySource Source) { Dictionary <string, string> _actions = new Dictionary <string, string> { { "GetConversion", _helper.Link("Conversion", new { SourceId = Source.Id, Action = "GetConversion" }) }, { "GetCurrencyCodes", _helper.Link("Conversion", new { SourceId = Source.Id, Action = "GetCurrencyCodes" }) } }; return(new XeGatewaySourceModel() { Url = _helper.Link("XeSource", new { Sourceid = Source.Id }), Active = Source.Active, AdditionalParms = Source.AdditionalParms, Endpoint = Source.Endpoint, Name = Source.Name, Actions = Source.Active? _actions: null, Id = Source.Id }); }
public void UpdateSource(XeGatewaySource update) { _unitOfWork.XeSourceRepository.Update(update); _unitOfWork.Compleate(); }
public void AddSource(XeGatewaySource source) { _unitOfWork.XeSourceRepository.Add(source); _unitOfWork.Compleate(); }
public void Update(XeGatewaySource src) { _ctx.Entry(src).State = EntityState.Modified; }
public void Remove(XeGatewaySource src) { throw new NotImplementedException(); }
public void Add(XeGatewaySource src) { _ctx.Source.Add(src); }