public ServerReturn SrtReplaceSource(postSource post) { var ret = bu.ReplaceSource(UserId, post.srtId, post.text, post.replace); if (!string.IsNullOrEmpty(ret.error)) { return(new ServerReturn { error = -1, error_msg = ret.error }); } return(new ServerReturn { data = ret.battuta }); }
public ServerReturn SrtTrans(postSource post) { var ret = bu.UpdateTrans(UserId, post.srtId, post.id, post.text); if (!string.IsNullOrEmpty(ret.error)) { return(new ServerReturn { error = -1, error_msg = ret.error }); } return(new ServerReturn { data = ret.battuta }); }