public static void UpdateButtonPostback(this ButtonPostback btnPostback, ButtonPostbackViewModel btnPostbackVm) { btnPostback.ID = btnPostbackVm.ID; btnPostback.Type = btnPostbackVm.Type; btnPostback.Title = btnPostbackVm.Title; btnPostback.Payload = btnPostbackVm.Payload; btnPostback.CardPayloadID = btnPostbackVm.CardPayloadID; btnPostback.Index = btnPostbackVm.Index; btnPostback.DictionaryKey = btnPostbackVm.DictionaryKey; btnPostback.DictionaryValue = btnPostbackVm.DictionaryValue; }
public ButtonPostback AddButtonPostback(ButtonPostback btnPostback) { return(_buttonPostbackRepository.Add(btnPostback)); }